package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.Menu;
import com.example.demo.mapper.MenuMapper;
import com.example.demo.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author moguai
 * @version 1.0
 * @date 2022/3/19 20:38
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu>implements MenuService {
    @Autowired
    MenuMapper menuMapper;
    @Override
    public List<Menu> SelectMenus(List<Integer> user) {
        return menuMapper.selectBatchIds(user);
    }
}
